#pragma once
#include <iostream>
#include <string>

namespace yzq {
#if defined (UNICODE)
	typedef wchar_t tchar;

#else
	typedef char tchar;

#endif

	typedef std::basic_string<tchar> tstring;

	void AddErrorMsg(const int errorCode, const tchar* msg);

	void SetLastError(const int errorCode);

	int GetLastErrorCode();

	const tchar* GetLastErrorMsg(int errCode);
};
